package s0404.service;

import s0404.entity.User;
import s0404.exception.BaseException;

import java.sql.SQLException;

/**
 * @author tg.si@188.com
 * @todo
 * @since 2024/4/13 19:22
 */
public interface UserService {
    User find(Integer id) throws SQLException, BaseException;

    //这里修改user, 是不是就不用返回了，调用者使用引用
    int add(User user) throws SQLException;

    void login(User userToLogin) throws SQLException;
}
